<h1>Listing grabs</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Detail</th>
    <th>Price</th>
    <th>Quantity</th>
    <th>Bought date</th>
    <th>Expire date</th>
  </tr>

<% for grab in @grabs %>
  <tr>
    <td><%=h grab.title %></td>
    <td><%=h grab.detail %></td>
    <td><%=h grab.price %></td>
    <td><%=h grab.quantity %></td>
    <td><%=h grab.bought_date %></td>
    <td><%=h grab.expire_date %></td>
    <td><%= link_to 'Show', grab %></td>
    <td><%= link_to 'Edit', edit_grab_path(grab) %></td>
    <td><%= link_to 'Destroy', grab, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New grab', new_grab_path %>
